<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
</head>
<body>
<div th:replace="common/commoncss :: commoncss"></div>
<style type="text/css">
a {
	color: black;
}

a:hover {
	text-decoration: none;
}

.bgc-w {
	background-color: #fff;
}

.c {
	font-weight: 600;
}

.paixu:HOVER {
	cursor: pointer;
	color: #337ab7;
}
</style>

<div class="row" style="padding-top: 10px;">
	<div class="col-md-2">
		<h1 style="font-size: 24px; margin: 0;" class="">通知列表</h1>
	</div>
	<div class="col-md-10 text-right">
		<a href="index"><span class="glyphicon glyphicon-home"></span> 首页</a>
		> <a disabled="disabled">通知列表</a>
	</div>
</div>

<div class="row" style="padding-top: 15px;">
	<div class="col-md-12 thistable">
		<!--id="container"-->
		<div th:replace="notice/informlistpaging :: informlistpaging"></div>
	</div>
</div>
<script  th:src="@{/assets/layui.all.js}"></script>
<script  th:src="@{/easyui/jquery.min.js}"></script>
<script th:inline="javascript">
	//获取应用路径
	var contextPath = [[${#request.getContextPath()}]];
</script>
<script>
	layui.use(['laypage', 'layer'], function() {
		var laypage = layui.laypage
				, layer = layui.layer;

	})

	function deleteNotice(noticeId) {
		//询问框
		layer.confirm('确认删除吗？', {
			btn: ['必须的','算了吧'] //按钮
		}, function(){
			//异步修改用户的状态
			$.ajax({
				url : contextPath + "/notice/deleteMyNotice",
				data : {"noticeId" : noticeId},
				method : "post",
				success : function (data) {
					layer.msg(data.message,{icon:1, time:1000},function () {
						//自动刷新当前页面
						window.location.reload(true);
					});
				}
			})
		}, function(){
			layer.msg('取消成功', {
				time: 1000, //20s后自动关闭
			});
		});
	}

	function forwardAnother(noticeId) {
		//询问框
		layer.confirm('确认转发给自己的下属吗？', {
			btn: ['必须的','算了吧'] //按钮
		}, function(){
			//异步修改用户的状态
			$.ajax({
				url : contextPath + "/notice/forwardAnother",
				data : {"noticeId" : noticeId},
				method : "post",
				success : function (data) {
					layer.msg(data.message,{icon:1, time:1000},function () {
						//自动刷新当前页面
						window.location.reload(true);
					});
				}
			})
		}, function(){
			layer.msg('取消成功', {
				time: 1000, //20s后自动关闭
			});
		});
	}
	</script>
</body>
</html>